package com.cai.kcsj.service.impl;

import com.cai.kcsj.entity.User;
import com.cai.kcsj.mapper.UserMapper;
import com.cai.kcsj.service.UserServer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @version 1.0
 * @author：蔡松坡
 * @date：2021/1/4 19 : 14
 * @package：com.cai.kcsj.service.impl
 */
@Service
public class UserServerImpl implements UserServer {
    @Autowired
    private UserMapper userMapper;

    public List<User> selectAllUser(){
        return userMapper.selectAllUser();
    }
    public User selectUserById(Integer id){
        return userMapper.selectUserById(id);
    }
    public void updateUser(User user){
        userMapper.updateUser(user);
    }
}
